import api from './api';

// 家具相关API
export const furnitureService = {
  // 获取所有家具
  getAllFurniture: () => api.get('/furniture'),
  
  // 根据ID获取家具
  getFurnitureById: (id) => api.get(`/furniture/${id}`),
  
  // 创建家具
  createFurniture: (furnitureData) => api.post('/furniture', furnitureData),
  
  // 更新家具
  updateFurniture: (id, furnitureData) => api.put(`/furniture/${id}`, furnitureData),
  
  // 删除家具
  deleteFurniture: (id) => api.delete(`/furniture/${id}`),
};
